﻿<UserControl x:Class="CartoonViewer.UC_Chapter"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Background="Transparent"  
    >
    <Grid   Width="45" Height="50" Canvas.Left="0" Canvas.Top="0" >
        <Border x:Name="Gd_Chapter" CornerRadius="5" BorderBrush="Black" BorderThickness="2" Background="White" Opacity="0.8">
            <Grid  >
                <Grid.RowDefinitions >
                    <RowDefinition Height="25" ></RowDefinition>
                    <RowDefinition Height="25"></RowDefinition> 
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Border Grid.Column="0" Grid.Row="0">
                    <Label x:Name="Lb_ChapterTitle" HorizontalContentAlignment="Center">10话</Label>
                </Border> 
                 <Border Grid.Column="0" Grid.Row="1" x:Name="PlUnDownload"   >
                    <Label x:Name="Lb_Download" HorizontalContentAlignment="Center" VerticalContentAlignment="Top"
                           MouseEnter="Lb_Download_MouseEnter" 
                           MouseLeave="Lb_Download_MouseLeave" 
                           MouseDoubleClick="Lb_Download_MouseDoubleClick">下载</Label>  
                 </Border>

                <StackPanel Grid.Column="0" Grid.Row="1" Orientation="Vertical" x:Name="PlDownloading" >
                    <ProgressBar Width="38" Height="5" Value="{Binding Path=Progress}" Maximum="1" Margin="1 2 1 1"  
                    Name="PbDownloading" Style="{StaticResource ProgressBarStyle}">
                    </ProgressBar>
                    <TextBlock x:Name="LbDownloadingProgress" Text="10%" FontSize="10"   HorizontalAlignment="Center" VerticalAlignment="Center"
                           Padding="0" ></TextBlock>
                </StackPanel>

                <StackPanel Grid.Column="0" Grid.Row="1" Orientation="Vertical" x:Name="PlDownloaded" >

                     <Label x:Name="LbLook" HorizontalContentAlignment="Center" VerticalContentAlignment="Top"  MouseDoubleClick="LbLook_MouseDoubleClick" MouseEnter="LbLook_MouseEnter" MouseLeave="LbLook_MouseLeave">看看</Label>
                </StackPanel>

            </Grid>
    </Border>
</Grid>
</UserControl>
